/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exatrez.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author fikri
 */
@Entity
@Table(name = "status_remark_code")
@NamedQueries({
    @NamedQuery(name = "StatusRemarkCode.findAll", query = "SELECT s FROM StatusRemarkCode s")})
public class StatusRemarkCode implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "status_remark_code_id")
    private Integer statusRemarkCodeId;
    @Column(name = "status_remark_name")
    private String statusRemarkName;
    
    @Embedded
    private InfoAudit infoAudit;

    public StatusRemarkCode() {
    }

    public StatusRemarkCode(Integer statusRemarkCodeId) {
        this.statusRemarkCodeId = statusRemarkCodeId;
    }

    public Integer getStatusRemarkCodeId() {
        return statusRemarkCodeId;
    }

    public void setStatusRemarkCodeId(Integer statusRemarkCodeId) {
        this.statusRemarkCodeId = statusRemarkCodeId;
    }

    public String getStatusRemarkName() {
        return statusRemarkName;
    }

    public void setStatusRemarkName(String statusRemarkName) {
        this.statusRemarkName = statusRemarkName;
    }

    public InfoAudit getInfoAudit() {
        return infoAudit;
    }

    public void setInfoAudit(InfoAudit infoAudit) {
        this.infoAudit = infoAudit;
    }
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (statusRemarkCodeId != null ? statusRemarkCodeId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof StatusRemarkCode)) {
            return false;
        }
        StatusRemarkCode other = (StatusRemarkCode) object;
        if ((this.statusRemarkCodeId == null && other.statusRemarkCodeId != null) || (this.statusRemarkCodeId != null && !this.statusRemarkCodeId.equals(other.statusRemarkCodeId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "exatrez.model.StatusRemarkCode[ statusRemarkCodeId=" + statusRemarkCodeId + " ]";
    }
    
}
